package com.cn.service;

import java.util.List;

import com.cn.dao.backstage_huodong_dao;
import com.cn.entity.Activity_entity;
public class backstage_huodong_contlr {
	private backstage_huodong_dao huodong;
	public backstage_huodong_contlr(){
		
		huodong = new backstage_huodong_dao();
	}
	
	public List<Activity_entity> getmember(){
		List<Activity_entity> list =  huodong.getactivity();
		
		return list;
	}
	
	public int upactivity(int id, String title, String activity_img,String content, int activity_state,String activity_time){
		return huodong.Upactivity(id, title, activity_img, content, activity_state, activity_time);
	}
	public int addactivity( String title, String activity_img,String content, int activity_state,String activity_time){
		return huodong.addactivity(title, activity_img, content, activity_state, activity_time);
	}
}
